package my.soft.aiteacher.teacher.service;

import my.soft.aiteacher.teacher.pojo.FileUpload;
import my.soft.aiteacher.teacher.pojo.VideoCaption;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.util.List;

public interface IFileService {

    FileUpload uploadChunk(MultipartFile file, Integer chunkIndex, Long fileId, Long userId);

    String uploadFile(FileUpload fileUpload);

    String uploadCaption(List<VideoCaption> videoCaptionList);

    List<VideoCaption> getCaption(Long fileId);

    List<VideoCaption> updateCaption(List<VideoCaption> videoCaptionList);

    File getVideo(String fileId);

    List<FileUpload> getTeacherVideoInformation(Long userId);

    void deleteVideo(Long userId, Long fileId);
}
